import Cookies from 'js-cookie'

const TokenKey = 'teemor_admin_token'
const UserKey = 'teemor_admin_user'

export function getToken() {
  return localStorage.getItem("AUTHTOKEN");
  // return Cookies.get(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem("AUTHTOKEN",token);
  // return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


export function getUser() {
  return localStorage.getItem("USERNAME");
  // return Cookies.get(UserKey)
}

export function setUser(userName) {
  return localStorage.setItem("USERNAME", userName);
  // return Cookies.set(UserKey, token)
}

export function removeUser() {
  return Cookies.remove(UserKey)
}
